<template>
  <div class="head">
    <span class="login" v-if="bool" @click="log()">登录</span>
    <span v-else>退出</span>
    <div class="ipt">
      <input type="text" placeholder="欢迎使用大字版" />
      <span class="iconfont icon-sousuo"></span>
      <span class="iconfont icon-huatong"></span>
    </div>
    <span class="iconfont icon-xiaoxi"></span>
    <span class="iconfont icon-jiahao"></span>
  </div>
</template>

<script>
export default {
  data(){
    return{
      bool:true
    }
  },
  methods:{
    log(){
      this.$router.push("/login")
    }
  }
};
</script>

<style scoped>
.head {
  width: 100%;
  height: 0.3rem;
  font-size: 0.15rem;
  /* margin-top: 0.09rem; */
  display: flex;
  position: fixed;
  color: white;
  justify-content: space-evenly;
  align-items: center;
  background-color: #c3955a;
}
.ipt {
  position: relative;
}
input {
  width: 1.76rem;
  height: 0.3rem;
  border-radius: 0.15rem;
  text-indent: 0.3rem;
  border: none;
  font-size: 0.14rem;
}
.icon-sousuo {
  position: absolute;
  font-size: 0.2rem;
  left: 0.1rem;
  top: 0.06rem;
  color: black;
}
.icon-huatong {
  width: 0.3rem;
  height: 0.2rem;
  position: absolute;
  font-size: 0.15rem;
  right: 0.1rem;
  top: 0.06rem;
  text-align: center;
  line-height: 0.2rem;
  background-color: orangered;
  border-radius: 0.5rem;
}
.icon-xiaoxi {
  font-size: 0.25rem;
}
.icon-jiahao {
  font-size: 0.25rem;
}
</style>